﻿namespace Ross.EntityFramework.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class UpdateExamModel : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.ExamDB", "ClassName", c => c.String(maxLength: 50));
            AddColumn("dbo.ExamDB", "ExamType", c => c.String(maxLength: 10));
            AddColumn("dbo.ExamDB", "ExamAnswer", c => c.String());
            AddColumn("dbo.ExamDB", "IsHot", c => c.Boolean(nullable: false));
            AddColumn("dbo.ExamDB", "Points", c => c.Decimal(nullable: false, precision: 18, scale: 2));
            DropColumn("dbo.ExamDB", "IsClosed");
        }
        
        public override void Down()
        {
            AddColumn("dbo.ExamDB", "IsClosed", c => c.Boolean(nullable: false));
            DropColumn("dbo.ExamDB", "Points");
            DropColumn("dbo.ExamDB", "IsHot");
            DropColumn("dbo.ExamDB", "ExamAnswer");
            DropColumn("dbo.ExamDB", "ExamType");
            DropColumn("dbo.ExamDB", "ClassName");
        }
    }
}
